package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.dto.ServiceQueryDto;
import com.csun.cmny.provider.model.domain.OmcService;
import com.csun.cmny.provider.vo.VolunteerVo;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface OmcServiceService extends IService<OmcService> {

    /*
    * 分页查询
    * */
    PageInfo queryServiceListWithPage(ServiceQueryDto serviceQueryDto);


    /*
     * 删除服务和其服务项
     * */
    Integer deleteServiceAndItem(Long serviceId);

    /*
    * 添加、修改服务
    * */
    Integer saveService(OmcService omcService, LoginAuthDto loginAuthDto);
    //查询该平台下服务项目
    List<String> selectSeriviceItem(Long groupId);
    //查询服务项目占比
    Map<String, Number> selectServicePercent(Long groupId,List<String> services);
    //查询服务项目占比
    List<Map<String, Number>> selectServiceByNurseHome(Long groupId, List<String> services);
    /*
     * 大数据平台社区志愿者页面志愿者服务时长
     * */
    List<VolunteerVo> selectServiceTimeByNurseHome(VolunteerVo vo);
    /*
     * 大数据平台首页志愿者
     * */
    VolunteerVo selectByVolunteer(Long groupId);
}
